GDK W32: Add/subtract shadow when (un)snapping
authorРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 15 Mar 2016 10:17:45 +0000 (10:17 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 30 Mar 2016 09:04:37 +0000 (09:04 +0000)
commitcfbb8c525236f5f7b0af1e71c475be8faf450b26
treea13232b93a81a90b468307e26d988f94a4e07a70
parentf853283d7b9f173d429aa49e2e976f0d23ef5c40
GDK W32: Add/subtract shadow when (un)snapping

Now halfleft/halfright/fullup snaps do hug screen edges as intended.

Documents AeroSnap behaviour when snapped windows are drag-resized
(currently this implementation handles this in a very simplistic way).

Don't believe GTK when it tells us that window shadow is 0, preserve
previous values (but do remember that GTK wants no shadow, in case
we need that).

Fixes a couple of bugs in unsnapping (check offset against the half
of the window; don't put pointer in the middle of the window vertically
if it still fits in the top half).

https://bugzilla.gnome.org/show_bug.cgi?id=763013
gdk/win32/gdkwindow-win32.c
gdk/win32/gdkwindow-win32.h